package sy.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.IotpatrolURIDaoI;
import sy.model.IotPatrolURI;
import sy.service.IotPatrolURIServiceI;

@Service("iotPatrolURIService")
public class IotPatrolURIServiceImpl implements IotPatrolURIServiceI{
	@Autowired
	IotpatrolURIDaoI iotPatrolURIDao;

	@Override
	public void save(IotPatrolURI iotPatrolURI){
		// TODO Auto-generated method stub
		iotPatrolURIDao.save(iotPatrolURI);
	}

	@Override
	public void update(IotPatrolURI iotPatrolURI) {
		// TODO Auto-generated method stub
		iotPatrolURIDao.update(iotPatrolURI);
	}

	@Override
	public void delete(List<Integer> ids) {
		// TODO Auto-generated method stub
		iotPatrolURIDao.delete(ids);
	}

	@Override
	public List<IotPatrolURI> list() {
		// TODO Auto-generated method stub
		return iotPatrolURIDao.list();
	}

	@Override
	public List<IotPatrolURI> listIotPatrolURIByKey(String key) {
		// TODO Auto-generated method stub
		return iotPatrolURIDao.listIotPatrolURIByKey(key);
	}

	@Override
	public IotPatrolURI getIotPatrolURIById(Integer id) {
		// TODO Auto-generated method stub
		return iotPatrolURIDao.getIotPatrolURIById(id);
	}
	
	@Override
	public IotPatrolURI getIotPatrolURIByCode(String uniqueCode) {
		// TODO Auto-generated method stub
		return iotPatrolURIDao.getIotPatrolURIByCode(uniqueCode);
	}

	@Override
	public void updateRemoteInfo(String token, Date date) {
		// TODO Auto-generated method stub
		iotPatrolURIDao.updateRemoteInfo(token, date);
	}
}
